.class Lcom/waiqin365/lightapp/order/ba;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/order/ba;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 4

    const/4 v3, 0x1

    iget-object v0, p0, Lcom/waiqin365/lightapp/order/ba;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-static {v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->c(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->a(Ljava/lang/String;)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->c(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->d()V

    iget v1, p1, Landroid/os/Message;->what:I

    packed-switch v1, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->dismissProgressDialog()V

    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/order/b/a/o;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/order/b/a/o;->b()Z

    move-result v2

    if-eqz v2, :cond_2

    iget-object v2, v1, Lcom/waiqin365/lightapp/order/b/a/o;->b:Ljava/lang/String;

    iget-object v3, v1, Lcom/waiqin365/lightapp/order/b/a/o;->c:Ljava/lang/String;

    iget-object v1, v1, Lcom/waiqin365/lightapp/order/b/a/o;->e:Ljava/util/List;

    invoke-static {v0, v2, v3, v1}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->a(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V

    goto :goto_0

    :cond_2
    invoke-static {v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->d(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;)I

    invoke-static {v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->a(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;)I

    move-result v2

    if-ge v2, v3, :cond_3

    invoke-static {v0, v3}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->b(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;I)I

    :cond_3
    iget v2, v1, Lcom/waiqin365/lightapp/order/b/a/o;->a:I

    invoke-static {v0, v2}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->a(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;)I

    move-result v2

    if-ne v2, v3, :cond_0

    invoke-static {v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->e(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->e(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v2

    iget v1, v1, Lcom/waiqin365/lightapp/order/b/a/o;->a:I

    invoke-virtual {v2, v1}, Lcom/waiqin365/lightapp/view/NoNetView;->a(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;->c(Lcom/waiqin365/lightapp/order/OrderRecentlyActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x3ed
        :pswitch_0
    .end packed-switch
.end method
